package com.biz.primus.model.promotion.vo;

import com.biz.primus.model.promotion.enums.PromotionGiftTypeEnum;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 签到/评价有礼奖品类型
 *
 * @author david-liu
 */
@Getter
@Setter
public class SignatureGiftRuleVo implements Serializable {
    private static final long serialVersionUID = 7779607052978204370L;

    private PromotionGiftTypeEnum giftType;

    /**
     * 赠送商品数量
     */
    private Integer giftProductQuantity = 1;

    /**
     * 赠品ID集合
     */
    private List<Long> giftProductIds;

    /**
     * 是否限制库存
     */
    private Boolean limitGiftProductStock;

    /**
     * 赠送的积分数量
     */
    private Integer pointQuantity;

    /**
     * 赠送的券的ID集合
     */
    private Map<Long, Integer> couponIds;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
